package com.yanyu.space.file.bean.enums;

import com.yanyu.space.common.core.bean.enums.IRCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author yanyu
 */
@AllArgsConstructor
@Getter
public enum FileRCode implements IRCode {
    FILE_EXSIT(30001, "文件已存在"),
    FILE_NOT_EXSIT(30002, "文件不存在"),
    FILE_SHARDING_FAIL(30003, "文件分片失败"),
    FILE_MERGE_FAIL(30004, "文件合并失败"),
    FILE_UPLOAD_FAIL(30005, "文件上传失败"),
    ;

    private int code;

    private String msg;

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
